/*
 * @Description: 
 * @Author: zhuying
 * @Date: 2024-10-09 19:23:50
 * @LastEditors: rendc
 * @LastEditTime: 2024-10-09 19:24:30
 */

import java.util.Scanner;

public class Test034_2Catchs {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] arr = {3,1,0,4,6,5};
        try {
            System.out.println("input index: ");
            int index = sc.nextInt();
            int num = arr[index];
            System.out.println("arr["+index+"]: " + num);
        }catch(Exception e) {
            e.printStackTrace();
}
        System.out.println("after try-catch ...");
}
}
